package com.google.guava.eventbus.listeners;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.google.common.eventbus.Subscribe;

/**
 * @author fuc
 * @create 2020-10-06
 */
public class ExceptionListener {

  private static final Log log = LogFactory.get();

  @Subscribe
  public void m1(String event) {
    log.info("=============m1=================={}", event);
  }

  @Subscribe
  public void m2(String event) {
    log.info("=============m2=================={}", event);
  }

  @Subscribe
  public void m3(String event) throws RuntimeException {
    log.info("=============m3=================={}", event);
    throw new RuntimeException();
  }
}
